import request from '@/utils/request'
//贷款材料管理列表查询
export  function listMaterial(query){
    return request({
        url:"/loan/loanMaterials/list",
        method: 'post',
        data:query
    })
}
//新增贷款材料管理
export  function addMaterial(query){
    return request({
        url:"/loan/loanMaterials/add",
        method:"post",
        data:query
    })
}

//修改贷款材料管理
export  function updateMaterial(query){
    return request({
        url:"/loan/loanMaterials/update",
        method:"post",
        data:query
    })
}
//修改贷款材料状态
export  function updateMaterialState(id,state){
    return request({
        url:`/loan/loanMaterials/${id}/state/${state}`,
        method:"post"
    })
}

//查看贷款材料管理详情
export  function queryMaterial(id){
    return request({
        url:"/loan/loanMaterials/query/"+id,
        method:"get"
    })
}

//删除贷款材料管理
export  function delMaterial(id){
    return request({
        url:"/loan/loanMaterials/"+id,
        method:"delete"
    })
}